﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ViewTwoDimensionSNbySN.aspx.cs" Inherits="ViewbyProduct_ViewTwoDimensionSN_ViewTwoDimensionSNbySN"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style=" text-align:center">
        <br />
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
            请输入要查询的序列号：
            <asp:TextBox ID="TextBox3" runat="server" Width="225px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox3"
                ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查 询" ValidationGroup="VGroup1"
                Width="54px" />
        </asp:Panel>
        <br />
        <asp:Label ID="Label3" runat="server" Text="查询结果：" Width="162px"></asp:Label>
        <br />
    </div>
    <asp:Panel ID="Panel2" runat="server" Height="111px" HorizontalAlign="Center">
        <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="114px" 
            Width="688px" ReadOnly="True"></asp:TextBox>
    </asp:Panel>
    <br />
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <asp:GridView ID="GridView1" runat="server" CellPadding="3" DataKeyNames="ProductSN,TestTime,ProductTypeID,UserID,ENAID,SpecVersion,IsPass"
                    GridLines="None" AutoGenerateColumns="False" BackColor="White" BorderColor="White"
                    BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" EmptyDataText="没有相关数据"
                    Width="100%" PageSize="20" onrowcreated="GridView1_RowCreated">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="ProductSN" DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}"
                            DataTextField="ProductSN" HeaderText="腔体序列号" NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx"
                            Text="ProductSN" />
                        <asp:BoundField DataField="TestTime" HeaderText="测试时间" />
                        <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                        <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                        <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
                        <asp:BoundField DataField="SpecVersion" HeaderText="指标单版本" />
                        <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
                        <asp:BoundField DataField="TDSN" HeaderText="二维条码" />
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" 
                    CellPadding="3" CellSpacing="1" 
                    DataKeyNames="ProductSN,RecordTime,ProductTypeID,UserID,SN3BK,MouldVersion,IsPass" 
                    EmptyDataText="没有相关数据" GridLines="None" onrowcreated="GridView2_RowCreated" 
                    PageSize="20" Width="100%">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="ProductSN" 
                            DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}" 
                            DataTextField="ProductSN" HeaderText="腔体序列号" 
                            NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx" 
                            Text="ProductSN" />
                        <asp:BoundField DataField="RecordTime" HeaderText="测试时间" />
                        <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                        <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                        <asp:BoundField DataField="SN3BK" HeaderText="3BK条码" />
                        <asp:BoundField DataField="MouldVersion" HeaderText="模板版本" />
                        <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
                        <asp:BoundField DataField="TDSN" HeaderText="二维条码" />
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
                <br />
                <br />
                <br />
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
